//
//  ERAboutUsViewController.m
//  ExchangeRate
//
//  Created by 方义强 on 15/11/14.
//  Copyright © 2015年 方义强. All rights reserved.
//

#import "ERAboutUsViewController.h"

@interface ERAboutUsViewController ()

@property (nonatomic, strong) UIImageView *backgroudImageView;

@end

@implementation ERAboutUsViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor whiteColor];
    _leftButton.imageEdgeInsets = UIEdgeInsetsMake(10, 0, 10, 30);
    [_leftButton setImage:[UIImage imageNamed:@"iconfont-fanhui"] forState:(UIControlStateNormal)];
    [_leftButton addTarget:self action:@selector(clickBackButton:)forControlEvents:(UIControlEventTouchUpInside)];
    [self addViewOnAboutView];
}

- (void)addViewOnAboutView
{
    _backgroudImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 70, kSCREENWIDTH, kSCREENHEIGHT - 70)];
    _backgroudImageView.image = [UIImage imageNamed:@"about_us_bg"];
    [self.view addSubview:_backgroudImageView];
}

#pragma mark 点击返回按钮实现事件
- (void) clickBackButton:(UIButton *)btn
{
    [self.navigationController popViewControllerAnimated:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
